package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.Qc;
import com.zhijian.medical.entity.vo.request.QcSearchVo;
import com.zhijian.medical.entity.vo.response.QcVo;

import java.util.List;

public interface QcMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Qc record);

    int insertSelective(Qc record);

    Qc selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Qc record);

    int updateByPrimaryKey(Qc record);

    int count(QcSearchVo qcSearchVo);

    List<QcVo> selectList(QcSearchVo qcSearchVo);

    /**
     * 根据父数据的名称获取子数据
     *
     * @param parentName
     * @return
     */
    List<QcVo> selectChildrenByParentName(String parentName);

    QcVo selectVoById(Long id);
}